//
//  New_ChatRoomVC.m
//  K-Music
//
//  Created by CHUN on 16/3/6.
//  Copyright © 2016年 CHUN. All rights reserved.
//

#import "New_ChatRoomVC.h"

@implementation New_ChatRoomVC


-(void)viewWillAppear:(BOOL)animated{
    self.tabBarController.tabBar.hidden = YES;
}
- (void)viewWillDisappear:(BOOL)animated
{
    self.tabBarController.tabBar.hidden = NO;
}


- (void)viewDidLoad
{
    self.navigationItem.title = @"创建讨论组";
    
    self.navigationItem.leftBarButtonItem = [UIBarButtonItem itemWithIcon:@"back" highIcon:@"back" target:self action:@selector(back_back)];
    
    self.navigationItem.rightBarButtonItem = [UIBarButtonItem itemWithNameNEW:@"创建" Color:[UIColor blackColor] target:self action:@selector(createCharRoom)];
    
    self.view.backgroundColor = [UIColor whiteColor];
    
    UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(10.0f, 8.0f, 100, 20.0f)];
    label.text = @"讨论组名称";
    label.textColor = [UIColor grayColor];
    [self.view addSubview:label];
    
    UITextField *name = [[UITextField alloc] initWithFrame:CGRectMake(CGRectGetMaxX(label.frame), 3.0f, 210.0f, 35.0f)];
    name.contentVerticalAlignment = UIControlContentVerticalAlignmentCenter;
    //    name.backgroundColor = [UIColor whiteColor];
    
    name.placeholder = @"请输入讨论组名";
    [self.view addSubview:name];
    
}

- (void)back_back
{
    [self.navigationController popViewControllerAnimated:YES];
}

- (void)createCharRoom
{
    [MBProgressHUD showErrorWithStatus:@"完善中。。。" toView:self.view];
};


@end
